package com.virtualmall.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.virtualmall.bean.Address;
import com.virtualmall.service.AddressService;
import com.virtualmall.service.BaseService;

@Service
@Transactional
public class AddressServiceImpl extends BaseService implements AddressService {

	@Override
	public void create(Address address) {
		this.addressDao.create(address);
	}

	@Override
	public Address read(Long id) {
		return this.addressDao.read(id);
	}

    @Override
    public void update(Address address) {
        this.addressDao.update(address);
    }
	
}
